// import { gohost } from "libs/api/app"

export const GET_PERSON_ASSESS = "GET_PERSON_ASSESS"

//分页查询数据交换
export function fetchList(query) {
  return async (dispatch) => {
    // let {data} = await gohost(query)
    dispatch({
      type: GET_PERSON_ASSESS,
      data
    })
  }
}

/**
 * 普通面板CLICK，取出对应人的考核数据
 * @param data
 * @returns {function(*)}
 */
export function fetchNowPerson(data) {
  return async (dispatch) => {
    // let {data} = await gohost(query)
    dispatch({
      type: GET_PERSON_ASSESS,
      data
    })
  }
}
